package com.example.module_motocircle.ui

import com.example.module_motocircle.http.MotorCircleApi
import com.example.module_motocircle.http.MotorCircleNetModule
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

class MotorCircleRepository @Inject constructor() {
    @Inject
    @MotorCircleNetModule.CommonMainApi
    lateinit var motorCircleApi: MotorCircleApi
    fun navigationItem() = flow {
        emit(motorCircleApi.navigationItem())
    }.flowOn(Dispatchers.IO)
}